{ext->class_function class="letters" assign="is_letters"}
{if $is_letters == 1}
<div style="background-color:#F8F9F9; border-bottom:2px solid #D9DFE3; margin:0 0 20px 0">
	<div style="line-height:22px; margin:0 10px 0 10px; font-weight:bold ">{t t='Laiškų siuntimas'}</div>	
</div>	
	{if $smarty.get.tpl_letters_module=='job' || $smarty.get.tpl_letters_module=='import' }
	{ext->class_function class="letters" func="get_job_data" job=$smarty.get.job_id assign="job_data"}	
	<div style="border:2px solid #DBE1E5; border-left:0; border-right:0; margin:20px 0 20px 0; padding:5px 0 5px 0">
		<img src="_tvs_system_core_/design/img/laiskas.gif" style="vertical-align:middle; margin:0 7px 2px 5px ">
		<span style="color:#CC0E00; font-weight:bold">{$job_data.name}</span>
		<img src="client/img/spacer.gif" style="width:1px; background-color:#DBE1E5; margin:0 18px 0 18px; vertical-align:middle; height:23px" alt="" />
		<a onClick="openCenteredOnOpenerWindow('index.php?admin=1&group_id={$job_data.id}&popup=26','group_modif',400,300,1,0); return false" href="#"><img src="_tvs_system_core_/design/img/admin/_icon_page_properties.gif" style="vertical-align:middle; margin:0 5px 0 0 "> {t t='Redaguoti nuostatas'}</a>
	</div>	
	{/if}
	{include file="admin/modules/letters/tabs.html"}	
	<div style="border:1px solid #C4CDD2; border-top:0 ">
	<div style="border:6px solid #DBE1E5; background-color:#DBE1E5; width:100%">		
	{if  $smarty.get.tpl_letters_module=='list_jobs' || !$smarty.get.tpl_letters_module}
		{include file="admin/modules/letters/menu_letters.html"}
	{elseif  $smarty.get.tpl_letters_module=='list_unsub'}
		{include file="admin/modules/letters/menu_unsub.html"}
	{/if}

	{if $smarty.get.tpl_letters_module=='list_jobs' || !$smarty.get.tpl_letters_module}
			{include file="admin/modules/letters/list_goods.html"}			
	{elseif $smarty.get.tpl_letters_module=='import' }
		{include file="admin/modules/letters/import.html"}
	{elseif $smarty.get.tpl_letters_module=='job'}
		{include file="admin/modules/letters/edit_goods.html"}
	{elseif  $smarty.get.tpl_letters_module=='list_unsub'}
		{include file="admin/modules/letters/list_unsub.html"}
	{/if}
	
	
	{if  $smarty.get.tpl_letters_module=='list_jobs' || !$smarty.get.tpl_letters_module}
		{include file="admin/modules/letters/menu_letters.html"}
	{elseif  $smarty.get.tpl_letters_module=='list_unsub'}
		{include file="admin/modules/letters/menu_unsub.html"}
	{/if}			
	</div>
	</div>
{/if}
